﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using TVset.Enums;

namespace TVset
{
    public class Room
    {
        public static void Main(string[] args)
        {
            TVset Samsung = new TVset(ProducerName.Samsung);
            Thread.Sleep(2000);
            RemoteControlPanel pult = new RemoteControlPanel(Samsung);
            Thread.Sleep(2000);
            Console.WriteLine(Phrases.StartSentence);
            Thread.Sleep(2000);
            Person man = new Person("Bill");
            Thread.Sleep(2000);
            Person women = new Person("Dolly");
            Thread.Sleep(2000);
            Person friend = new Person("Mike", Phrases.Program);
                                                                        Timer timer33 = new Timer(2);
            women.RudeAnswer(Phrases.AnotherProgram);
                                                                        Timer timer4 = new Timer(4);
            man.Advice(Phrases.Suggestion, Phrases.Program);
                                                                        Timer timer10 = new Timer(1);
            Console.WriteLine(Phrases.Vouting);
            int sum = 0;
                                                                        Timer timer5 = new Timer(1);
            sum += man.voteFor();
                                                                        Timer timer6 = new Timer(2);
            sum += women.voteAgainst();
                                                                        Timer timer7 = new Timer(1);
            sum += friend.voteFor();
            if (sum > 1)
                man.resume(Phrases.Program);
            else 
                man.resume(Phrases.AnotherProgram);
                                                                        Timer timer8 = new Timer(4);
            man.TakeRemotePanel(pult, Samsung);
                                                                        Timer timer9 = new Timer(4);
            if (man.IsPersonSeesLightScreen(Samsung))
                Console.WriteLine(Phrases.SoftLightFromScreen);
            else
                Console.WriteLine(Phrases.LackOfScreenLight);
                                                                        Timer timer99 = new Timer(3);
            for (int i = 0; i < 5; i++ )
            {
                man.PressVolumeButtonOfControlePanel(pult, Samsung);
                                                                        Timer timer100 = new Timer(1);
            }
            Console.WriteLine("They are see a soccer in maximum soud value.");
                                                                        Timer timer81 = new Timer(1);
            Console.WriteLine("\n------------- The end ----------------");
            Console.ReadKey();
        }
    }
}
